#include <stdio.h>
int main()
{
    char input;
    int key;
    int target;
    scanf("%c%d", &input, &key);
    key = key % 26;
    target = input + key;
    if (target > 'z')
        target = target - 26;
    if (target < 'a')
        target = target + 26;
    printf("%c", target);
    return 0;
}